import request from '@/axios'

enum Api {
  saveUser = "/user/create",
  updateRole = "/user/update-role",
  queryUserMenu = "/auth/queryUserMenu"
}

export const saveUser = (data: any) => {
  return request.post(Api.saveUser, data)
}

export const updateRole = (data: any) => {
  return request.post(Api.updateRole, data)
}

export const queryUserRoleMenuApi = (data: any) => {
  return request.get(Api.queryUserMenu, data)
}